package com.ruoyi.consumer.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.consumer.mapper.CDealErrorMapper;
import com.ruoyi.consumer.domain.CDealError;
import com.ruoyi.consumer.service.ICDealErrorService;

/**
 * 钱包流水异常Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-19
 */
@Service
public class CDealErrorServiceImpl implements ICDealErrorService 
{
    @Autowired
    private CDealErrorMapper cDealErrorMapper;

    /**
     * 查询钱包流水异常
     * 
     * @param dealErrorId 钱包流水异常主键
     * @return 钱包流水异常
     */
    @Override
    public CDealError selectCDealErrorByDealErrorId(Integer dealErrorId)
    {
        return cDealErrorMapper.selectCDealErrorByDealErrorId(dealErrorId);
    }

    /**
     * 查询钱包流水异常列表
     * 
     * @param cDealError 钱包流水异常
     * @return 钱包流水异常
     */
    @Override
    public List<CDealError> selectCDealErrorList(CDealError cDealError)
    {
        return cDealErrorMapper.selectCDealErrorList(cDealError);
    }

    /**
     * 新增钱包流水异常
     * 
     * @param cDealError 钱包流水异常
     * @return 结果
     */
    @Override
    public int insertCDealError(CDealError cDealError)
    {
        cDealError.setCreateTime(DateUtils.getNowDate());
        return cDealErrorMapper.insertCDealError(cDealError);
    }

    /**
     * 修改钱包流水异常
     * 
     * @param cDealError 钱包流水异常
     * @return 结果
     */
    @Override
    public int updateCDealError(CDealError cDealError)
    {
        cDealError.setUpdateTime(DateUtils.getNowDate());
        return cDealErrorMapper.updateCDealError(cDealError);
    }

    /**
     * 批量删除钱包流水异常
     * 
     * @param dealErrorIds 需要删除的钱包流水异常主键
     * @return 结果
     */
    @Override
    public int deleteCDealErrorByDealErrorIds(Integer[] dealErrorIds)
    {
        return cDealErrorMapper.deleteCDealErrorByDealErrorIds(dealErrorIds);
    }

    /**
     * 删除钱包流水异常信息
     * 
     * @param dealErrorId 钱包流水异常主键
     * @return 结果
     */
    @Override
    public int deleteCDealErrorByDealErrorId(Integer dealErrorId)
    {
        return cDealErrorMapper.deleteCDealErrorByDealErrorId(dealErrorId);
    }
}
